home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ppppaaaassssssssmmmmggggmmmmtttt((((1111MMMM)))) ppppaaaassssssssmmmmggggmmmmtttt((((1111MMMM))))
-
-
-
- NNNNAAAAMMMMEEEE
- passmgmt - password files management
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ppppaaaassssssssmmmmggggmmmmtttt ----aaaa _o_p_t_i_o_n_s _n_a_m_e
-
- ppppaaaassssssssmmmmggggmmmmtttt ----mmmm _o_p_t_i_o_n_s _n_a_m_e
-
- ppppaaaassssssssmmmmggggmmmmtttt ----dddd _n_a_m_e
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The ppppaaaassssssssmmmmggggmmmmtttt command updates information in the password files. This
- command works with both /_e_t_c/_p_a_s_s_w_d and /_e_t_c/_s_h_a_d_o_w. If there is no
- /_e_t_c/_s_h_a_d_o_w, any changes made by ppppaaaassssssssmmmmggggmmmmtttt will only go into /_e_t_c/_p_a_s_s_w_d.
- If the shadow file is not present, the ----ffff and ----eeee options have no effect,
- because the data fields they modify are not present in the base password
- file.
-
- _pppp_aaaa_ssss_ssss_mmmm_gggg_mmmm_tttt _----_aaaa
-
- adds an entry for user _n_a_m_e to the password files.
-
- _pppp_aaaa_ssss_ssss_mmmm_gggg_mmmm_tttt _----_aaaa +_n_a_m_e
-
- adds an NIS entry to the password files. This command does not create
- any directory for the new user and the new login remains locked (with the
- string ****LLLLKKKK**** in the password field) until the _p_a_s_s_w_d(1) command is
- executed to set the password.
-
- _pppp_aaaa_ssss_ssss_mmmm_gggg_mmmm_tttt _----_mmmm
-
- modifies the entry for username in the password files. The name field in
- the /_e_t_c/_s_h_a_d_o_w entry and all the fields (except the password field) in
- the /_e_t_c/_p_a_s_s_w_d entry can be modified by this command. Only fields
- entered on the command line will be modified.
-
- _pppp_aaaa_ssss_ssss_mmmm_gggg_mmmm_tttt _----_dddd
-
- deletes the entry for username from the password files. It will not
- remove any files that the user owns on the system; they must be removed
- manually.
-
- _pppp_aaaa_ssss_ssss_mmmm_gggg_mmmm_tttt _----_ffff _dddd_aaaa_yyyy_ssss
-
- sets the period of inactivity for username in the shadow password file.
-
- _pppp_aaaa_ssss_ssss_mmmm_gggg_mmmm_tttt _----_eeee _wwww_hhhh_eeee_nnnn
-
- sets the expiration date for the account. The _wwww_hhhh_eeee_nnnn argument is an input
- string to the _g_e_t_d_a_t_e(3) routine. If the environment variable _D_A_T_E_M_S_K is
- not set, the file /_e_t_c/_d_a_t_e_m_s_k is used by _g_e_t_d_a_t_e to process this input
- argument. Errors from _g_e_t_d_a_t_e processing are reported. Expiration dates
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ppppaaaassssssssmmmmggggmmmmtttt((((1111MMMM)))) ppppaaaassssssssmmmmggggmmmmtttt((((1111MMMM))))
-
-
-
- must be greater than today.
-
- The following options are available:
-
- ----cccc_c_o_m_m_e_n_t A short description of the login. It is limited to a maximum
- of 128 characters and defaults to an empty field.
-
- ----hhhh_h_o_m_e_d_i_r Home directory of _n_a_m_e. It is limited to a maximum of 256
- characters and defaults to /_u_s_r/_p_e_o_p_l_e.
-
- ----uuuu_u_i_d UID of the _n_a_m_e. This number must range from 0 to the
- maximum non-negative value for the system. It defaults to
- the next available UID greater than 99. For an NIS entry,
- the default is 0. Without the ----oooo option, it enforces the
- uniqueness of a UID.
-
- ----oooo This option allows a UID to be non-unique. It is used only
- with the ----uuuu option.
-
- ----gggg_g_i_d GID of the _n_a_m_e. This number must range from 0 to the
- maximum non-negative value for the system. The default is 1
- for a local entry and 0 for an NIS entry.
-
- ----ssss_s_h_e_l_l Login shell for _n_a_m_e. It should be the full pathname of the
- program that will be executed when the user logs in. The
- maximum length of _s_h_e_l_l is 255 characters. The default is
- for this field to be set to /_b_i_n/_s_h.
-
- ----llll_l_o_g_n_a_m_e This option changes the _n_a_m_e to _l_o_g_n_a_m_e. It also can change
- a local entry to an NIS entry by
-
- _pppp_aaaa_ssss_ssss_mmmm_gggg_mmmm_tttt _----_mmmm _----_llll +_n_a_m_e _n_a_m_e
-
- or change an NIS entry to a local entry by
-
- _pppp_aaaa_ssss_ssss_mmmm_gggg_mmmm_tttt _----_mmmm _----_llll _n_a_m_e +_n_a_m_e
-
- It is used only with the ----mmmm option.
-
- The total size of each login entry is limited to a maximum of 4095 bytes
- (BBBBUUUUFFFFSSSSIIIIZZZZ-1, defined in /_u_s_r/_i_n_c_l_u_d_e/_s_t_d_i_o._h) in each of the password
- files.
-
- SSSSHHHHAAAARRRREEEE IIIIIIII AAAACCCCTTTTIIIIOOOONNNNSSSS
- If the Share II system is installed and enabled, then _p_a_s_s_m_g_m_t
- automatically creates and deletes lnodes as well as updating the password
- and shadow password files. Normally, only superusers are able to use
- _p_a_s_s_m_g_m_t, but if Share II is installed and enabled, then any user with a
- set aaaaddddmmmmiiiinnnn or uuuusssseeeelllliiiimmmm flag can also use it.
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- ppppaaaassssssssmmmmggggmmmmtttt((((1111MMMM)))) ppppaaaassssssssmmmmggggmmmmtttt((((1111MMMM))))
-
-
-
- _p_a_s_s_m_g_m_t -_a checks for an lnode with a UID equal to the UID of the
- newly-created entry in the password files. If such an lnode already
- exists, then it is left untouched. If such an lnode does not exists and
- the invoker has a set uuuusssseeeelllliiiimmmm flag, then a new lnode is created and the
- parent (ssssggggrrrroooouuuupppp) of the newly created lnode is initialized as the lnode
- ooootttthhhheeeerrrr, or if no such lnode exists, rrrrooooooootttt.
-
- If _p_a_s_s_m_g_m_t -_m is used to alter the UID of an existing user (the ----uuuu
- option), then a new lnode is created with the new UID. If such an lnode
- already exists, then it is left untouched. If the original UID was
- unique, then the old lnode is deleted. The contents of the old lnode are
- not copied to the new lnode.
-
- _pppp_aaaa_ssss_ssss_mmmm_gggg_mmmm_tttt _----_dddd
-
- deletes the lnode having the UID of the deleted password entry, if that
- UID was unique.
-
- Users with only a set aaaaddddmmmmiiiinnnn flag (subadministrators) are subject to the
- following restrictions:
-
- +o If using ppppaaaassssssssmmmmggggmmmmtttt ----aaaa to add a nonunique UID (with ----oooo), then an lnode
- with that UID must already exist, and must be a member of the
- invoker's scheduling group.
-
- +o If using ppppaaaassssssssmmmmggggmmmmtttt ----aaaa to add a unique UID, then there must not exist
- any orphan lnodes which already have that UID as their lost parent
- (ssssggggrrrroooouuuupppp). If this criterion is satisfied, than a new lnode is
- created blank and initialized with the invoker's lnode as its parent
- (ssssggggrrrroooouuuupppp).
-
- +o If using ppppaaaassssssssmmmmggggmmmmtttt ----mmmm to perform any modification to a user, then the
- modified user's lnode must exist and be a member of the invoker's
- scheduling group.
-
- +o If a user's UID is changed using ppppaaaassssssssmmmmggggmmmmtttt ----mmmm ----uuuu, then if the new UID
- is not unique (the ----oooo option was used), an lnode with that UID must
- already exist and be a member of the invoker's scheduling group.
- Otherwise, if the new UID is unique, a new lnode is created blank and
- initialized with the invoker's lnode as its parent (ssssggggrrrroooouuuupppp). In both
- cases, the original lnode of the user is deleted if it was unique in
- the passwd file.
-
- +o If using ppppaaaassssssssmmmmggggmmmmtttt ----dddd to delete a user, then the deleted user's lnode
- must exist, be a member of the invoker's scheduling group and have no
- child lnodes.
-
- CCCCAAAAVVVVEEEEAAAATTTT
- The ppppaaaassssssssmmmmggggmmmmtttt ----mmmm ----uuuu command will erase all usage, limit, privilege, and
- accumulated accounting information of the user whose UID is altered.
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-
-
-
- ppppaaaassssssssmmmmggggmmmmtttt((((1111MMMM)))) ppppaaaassssssssmmmmggggmmmmtttt((((1111MMMM))))
-
-
-
- FFFFIIIILLLLEEEESSSS
- /etc/passwd
- /etc/shadow
- /etc/opasswd
- /etc/oshadow
- /etc/limconf
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- passwd(1), ypchpass(1), yppasswd(1), passwd(4), shadow(4).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- The _p_a_s_s_m_g_m_t command exits with one of the following values:
-
- 0 SUCCESS.
-
- 1 Permission denied.
-
- In the case where the Share II system is enabled, it means that the
- invoker is not the superuser, and does not have a set uuuusssseeeelllliiiimmmm or
- aaaaddddmmmmiiiinnnn flag. Otherwise, the invoker is a user with only a set aaaaddddmmmmiiiinnnn
- flag (subadministrator), but is violating one of the restrictions
- described above.
-
- 2 Invalid command syntax. Usage message of the ppppaaaassssssssmmmmggggmmmmtttt command will
- be displayed.
-
- 3 Invalid argument provided to an option.
-
- 4 UID in use.
-
- In the case where the Share II system is enabled, it means that the
- lnode is _a_c_t_i_v_e (that is, has processes attached) and, hence, cannot
- be deleted.
-
- 5 Inconsistent password files (e.g., _n_a_m_e is in the /_e_t_c/_p_a_s_s_w_d file
- and not in the /_e_t_c/_s_h_a_d_o_w file, or vice versa).
-
- 6 Unexpected failure. Password files unchanged.
-
- In the case where the Share II system is enabled, it means that
- _p_a_s_s_m_g_m_t ran out of memory, or was unable to create or delete an
- lnode for an unknown reason.
-
- 7 Unexpected failure. Password file(s) missing.
-
- 8 Password file(s) busy. Try again later. A
-
- 9 _n_a_m_e does not exist (if ----mmmm or ----dddd is specified), already exists (if
- ----aaaa is specified), or _l_o_g_n_a_m_e already exists (if ----mmmm ----llll is specified).
-
-
-
-
-
-
- PPPPaaaaggggeeee 4444
-
-
-
-
-
-
- ppppaaaassssssssmmmmggggmmmmtttt((((1111MMMM)))) ppppaaaassssssssmmmmggggmmmmtttt((((1111MMMM))))
-
-
-
- NNNNOOOOTTTTEEEE
- You cannot use a colon or <cr> as part of an argument because it will be
- interpreted as a field separator in the password file.
-
- If the shadow file is used, the NIS entries get the password from the
- shadow file exclusively and must have an entry for each NIS user name.
- This will not permit the use of the general NIS entry, ++++::::::::0000::::0000::::::::::::, or
- netgroup expansions.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 5555
-
-
-
-